import com.itheima.Teacher;

public class Task {

    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> c1 /* TODO 类名.class */;
        System.out.println(c1); // class com.itheima.Teacher
        System.out.println(c1.getName()); // 全类名
        System.out.println(c1.getSimpleName()); // 简名：Teacher
        System.out.println(c1.getPackageName());// 包名：com.itheima

        Class<?> c2 /* TODO 通过Class的方法获取 */;
        System.out.println(c1 == c2);

        Teacher s = new Teacher();
        Class<?> c3 /* TODO 通过Object的方法获取 */;
        System.out.println(c3 == c2);
    }

}